var mongo = require('mongodb');

export const genIdSelector = (id) => {
    return { _id: mongo.ObjectId(id) }
}

export const genIdInSelector = (ids) => {
    return { _id: { $in: ids.map(id => mongo.ObjectId(id)) } }
}